package edu.sctu.practice.class02.yangyiqing.assign3.test1;

/**
 * Created by Administrator on 2015/10/22 0022.
 */
public class Circle extends GeometricObject {

    public double radius;

    public final double PI=Math.PI;


    public Circle(String color, double radius) {
        super(color);
        this.radius = radius;
    }

    @Override
    public double findArea() {
        return radius*radius*PI;
    }

    @Override
    public double findPerimeter() {
        return 2*PI*radius;
    }


}
